package com.learn.domain;

import javax.persistence.Entity;

/**
 * Created by Administrator on 2015/4/7.
 */
@Entity
public class User extends BaseObject {

    public enum Role {
       employee , Manager, SystemManage
    }

    public User() {

    }

    public User(String name, String department, String password) {
        this.name = name;
        this.department = department;
        this.role = Role.employee;
        this.password = password;
    }

    private String name;
    public String department;
    public Role role;
    public String password;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

}
